// Msg.h: interface for the CMsg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MSG_H__3D7D0872_C534_484B_BCBC_D95A300B435A__INCLUDED_)
#define AFX_MSG_H__3D7D0872_C534_484B_BCBC_D95A300B435A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
enum MSGTYPE {LOGIN,LOGINResponse,CHATTING,USERList,NOTICE};
#define MAX_BUFFER_SIZE			4096
#define MAX_CMDBUFFER_SIZE			512
#define SERVER_PORT				1234

#define REMOTE_TEMPFILENAME			"C:\\XteTempFile.tmp"

#define SOCK_GETALMRECLIST				0
#define SOCK_GETALMRECLISTack			1
#define SOCK_GETPLAYFILELEN				2
#define SOCK_GETPLAYFILELENack			3
#define SOCK_GETRECORD					4
#define SOCK_GETRECORDack				5
#define SOCK_EXITSOCKET					6
#define SOCK_SERVERSHUTDOWN				7


#define SOCK_ERROR						99
#define SOCK_ERROR_COUNTZERO			1
#define SOCK_ERROR_SERVERFULL			2
#define SOCK_ERROR_CLIENTIDLE			3

typedef struct
{
	int nDevID;
	char name[30];
}STRUCTAlmRecDev,*pstuAlmRecDev;

typedef struct
{
	int nRecordIndex;
	char cStartTime[20];
	char cEndTime[20];
	char cIP[20];
	char cName[30];
	int nRecordType;
}STRUCTrecord;

struct SENDDATA
{
	int nType;
	char buffer[MAX_BUFFER_SIZE];
};


class CMsg : public CObject  
{
public:
	//MSGTYPE m_eType;
	int m_eType;
	CString m_strMsg;
	CMsg();
	virtual ~CMsg();
    void Serialize(CArchive &ar);
};

#endif // !defined(AFX_MSG_H__3D7D0872_C534_484B_BCBC_D95A300B435A__INCLUDED_)
